package com.xmfh.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xmfh.wemedia.dto.VideoDTO;
import com.xmfh.wemedia.model.DdVideo;
import com.xmfh.wemedia.util.JsonResult;
import com.xmfh.wemedia.vo.VideoVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author admin
 * @since 2022-04-06
 */
public interface IDdVideoService extends IService<DdVideo> {

    JsonResult<List<DdVideo>> getHotVideo();

    String uploadFile(File localStorage, File localTargetStorage, MultipartFile file);

    void deleteUploadedFile(File localStorage, File localTargetStorage, String name);

    VideoDTO uploadVideoInfo(VideoVo video);

    List<DdVideo> getPersonalVideo(Integer id);
}
